package com.zbkj.crmeb.chant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.crmeb.core.common.CommonResult;
import com.common.PageParamRequest;
import com.github.pagehelper.PageInfo;
import com.zbkj.crmeb.chant.model.ChannelActivity;
import com.zbkj.crmeb.chant.request.ActivityDetailsRequest;
import com.zbkj.crmeb.chant.request.ActivityListRequest;
import com.zbkj.crmeb.chant.request.ActivityProductsRequest;
import com.zbkj.crmeb.chant.request.AddActivityRequest;
import com.zbkj.crmeb.store.response.StoreProductResponse;

import java.util.List;

/**
 * <p>
 * 商户限时活动表 服务类
 * </p>
 *
 * @author wuzp
 * @since 2022-05-30
 */
public interface ChannelActivityService extends IService<ChannelActivity> {

    CommonResult<String> addActivity(AddActivityRequest request);

    PageInfo<ChannelActivity> getMerActivityList(ActivityListRequest request, Integer merId);

    CommonResult<String> deleteActivity(Integer id, Integer merId);

    PageInfo<StoreProductResponse> getProducts(ActivityProductsRequest request);

    List<ChannelActivity> getMerActivityDropList(Integer type, Integer merId);

    PageInfo<StoreProductResponse> selectActivityProductList(ChannelActivity channelActivity, PageParamRequest pageParamRequest, Integer merId);

    List<ChannelActivity> getActivityByProduct(ActivityDetailsRequest detailsRequest);

    PageInfo<StoreProductResponse> getHomeProducts(ActivityProductsRequest request);

    List<ChannelActivity> getActivityBySkuId(ActivityDetailsRequest detailsRequest);

    void limitedTimeEventProductOff();

}
